package com.empsys.filter; /**
 * @author wzm
 * @create 2023-12-13 16:26
 * project_name:web2310
 * @Description
 */

import javax.servlet.*;
import javax.servlet.annotation.*;
import java.io.IOException;

//@WebFilter(urlPatterns = "/*")
public class DemoFilter implements Filter {


    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException {
        System.out.println("过滤器放行前");
        chain.doFilter(request,response);
        System.out.println("过滤器放行后");
    }
}
